#include "stm8s.h"
#include "TIM4.h"
#include "app_os_timer.h"

#include "osal_timer.h"


volatile uint32_t sysTick;  /*系统时间计数器*/


void TIM4_TimeBase_Interrupt(void)  /*1ms中断*/
{
  /* Cleat Interrupt Pending bit */
  TIM4_ClearITPendingBit(TIM4_IT_UPDATE);

  /*User Hook Function*/
//   TimerBase_UART_Hook();

  /*系统时间*/
  sysTick++;
  osal_update_timers(); /*1ms更新OS时基*/


}

uint32_t getMcuTickCount(void)
{
  return sysTick;
}